<div class="content">   
<input onclick ="redirectStr('rates/add')" type="button" class="button" value="<?php echo $this->translate('Add rate'); ?>"/>

<table border="1">
    <tr>
        <td><?php echo $this->translate('Rate name'); ?></td>
        <td><?php echo $this->translate('Current value'); ?></td>
        <td></td>
        <td></td>
    </tr> 
    <?php foreach($this->rates as $arr) : ?>
    <tr>
        <td>
            <?php echo $arr['name']; ?>
        </td>
        <td>
            <?php echo $arr['amount']; ?>
        </td>
        <td>
            <?php
            //update
            echo "<a href=" . $this->url(array(
                                'controller' => 'rates',
                                'action' => 'update',
                                'id' => $arr['id'])) . ">".$this->translate('Update')."</a>";
           ?>  
        </td>
        <td>
            <?php
            //delete
            echo "<a href=" . $this->url(array(
                                'controller' => 'rates',
                                'action' => 'delete',
                                'id' => $arr['id'])) . ">".$this->translate('Delete')."</a>";
           ?>
        </td>
    </tr> 
    <?php endforeach; ?>
</table>
</div>
